import { defineComponent } from "@/shared/tools.mjs";

export const myToggle = defineComponent({
  transclude: true,
  controller: class ToggleController {
    /**
     * @type {string[]}
     */
    static $inject = [];

    isOpen() {
      return this.opened;
    }

    toggle() {
      this.opened = !this.opened;
    }

    opened = false;
  },
});
